﻿using System;

namespace Pibby.Core
{
	/// <summary>
	/// Used in ... podcast-related events (surprised?)
	/// </summary>
	public class NewPodcastEventArgs : System.EventArgs
	{
		public NewPodcastEventArgs(string url, string name)
		{
			if (!string.IsNullOrEmpty(url))
			{
				this.Uri = new Uri(url);
			}

			this.Name = name;
		}

		public NewPodcastEventArgs(Uri uri, string name)
		{
			this.Uri = uri;
			this.Name = name;
		}

		public string Name
		{
			get;
			private set;
		}

		public Uri Uri
		{
			get;
			private set;
		}
	}
}
